<style>
    *{
        margin: 0;
        padding: 0;
    }
    table{
        width: 100%;
        border-collapse:collapse;
        border-spacing:0;
        margin:0;
        padding:0;
    }
    td,th{
        border:1px solid #000;
    }
</style>
<body>
<volist name="data" id="d" key="dk">
    <h2>{$dk}.{$d.t_name}</h2>
    <volist name="d['child']" id="api" key="ak">
        <h3>{$dk}.{$ak} {$api.title}</h3>
        <table>
            <tr style="background: #a3bfbc">
                <th>接口名：</th>
                <td>{$api.title}</td>
            </tr>
            <tr>
                <th>接口描述：</th>
                <td>{$api.desc|default='无'}</td>
            </tr>
            <tr>
                <th>接口链接：</th>
                <td>{$api.url}</td>
            </tr>
            <tr>
                <th>请求方式：</th>
                <td>{$api.request_type}</td>
            </tr>
            <tr>
                <th>传参：</th>
                <td>
                    <table>
                        <tr>
                            <th style="border-top: none;border-right: none;border-left: none;">名称</th>
                            <th style="border-top: none;border-right: none;border-left: none;">类型</th>
                            <th style="border-top: none;border-right: none;border-left: none;">描述</th>
                            <th style="border-top: none;border-right: none;border-left: none;">必填</th>
                        </tr>
                        <volist name="api.params" id="p">
                            <tr>
                                <td style="text-align: center;border-top: none;border-bottom: none;border-right: none;border-left: none;">{$p.p_name}</td>
                                <td style="text-align: center;border-top: none;border-bottom: none;border-right: none;border-left: none;">{$p.p_type}</td>
                                <td style="text-align: center;border-top: none;border-bottom: none;border-right: none;border-left: none;">{$p.p_desc}</td>
                                <td style="text-align: center;border-top: none;border-bottom: none;border-right: none;border-left: none;"><if condition="$p.p_must eq 1">是<else />否</if></td>
                            </tr>
                        </volist>
                    </table>
                </td>
            </tr>
            <tr>
                <th>返回值</th>
                <td colspan="4"><pre class="json" style="background: #eee;">{$api.json_str}</pre></td>
            </tr>
        </table>
    </volist>
</volist>
</body>
